package com.supergo.user.service.impl;



import com.supergo.user.entity.FrontUser;
import com.supergo.user.mapper.UserMapper;
import com.supergo.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * Created by on 2019/5/29.
 */
@Service
public class UserServiceImpl implements UserService {

    //注入mapper对象
    @Autowired
    private UserMapper userMapper;

    @Override
    public FrontUser findUserByID(Long id) {

        FrontUser frontUser = userMapper.selectByPrimaryKey(id);

        return frontUser;
    }
}
